<extend name="Index/index"/>

<block name="content">
    <!--<div class="view-product" style="margin-top: 50px">-->
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">管理员列表</h6>
            </div>
            <div class="offcial-table input-table table-margin clearfix">
                <div class="demoTable">
                    <form action="{{:U('User/adminUserList')}}" method="get">
                        根据人名搜索：
                        <div class="layui-inline">
                            <input class="layui-input" name="name"  autocomplete="off">
                        </div>
                        <input type="submit" value="搜索" class="layui-btn">
                    </form>
                    <a href="{{:U('User/add')}}" class="layui-btn layui-btn-normal">添加管理员</a>
                </div>
                <if condition="$adminUserList eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>没查询到符合条件的记录</span>
                    </div>
                    <else />
                    <table class="layui-table text-center">
                        <tr>
                            <th class="text-center">ID</th>
                            <th class="text-center">管理员名</th>
                            <th class="text-center">管理员类型</th>
                            <th class="text-center">创建时间</th>
                            <th class="text-center">修改时间</th>
                            <th class="text-center">操作</th>
                        </tr>
                        <foreach  name="adminUserList" item="vo" key="k">
                            <tr>
                                <td>{{$vo.id}}</td>
                                <td>{{$vo.name}}</td>
                                <td>{{$vo.sort_name}}</td>
                                <td>{{$vo.create_time}}</td>
                                <td>{{$vo.update_time}}</td>
                                <td>
                                    <eq name="vo.sort_name" value="普通管理员">
                                        <a href="{{:U('User/deleteAdminUser',array('id'=>$vo['id']))}}" class="layui-btn layui-btn-sm layui-btn-danger">删除</a>
                                    </eq>
                                </td>

                            </tr>
                        </foreach>
                        <tr>
                            <td colspan="6"><div class="sabrosus">{{$page}}</div></td>
                        </tr>
                    </table>
                </if>

            </div>
        </div>
    <!--</div>-->

</block>